package empty;
import org.apache.commons.lang3.StringUtils;

import java.util.Collections;

/**
 * @Author:zimmor
 * @Date: 2021/3/31 10:28
 * @Description
 * @version: 1.0.0
 */

public class StringUtil {
    public static void main(String[] args) {
        String a = "  ";
        System.out.println(a);
        if(StringUtils.isEmpty(a)) {
            System.out.println("字符串为空");
        } else {
            System.out.println("字符串不为空");
        }
        System.out.println("===================");
        if(StringUtils.isBlank(" a   ")) {
            System.out.println("是空白");
        } else {
            System.out.println("不是空白");
        }
    }
}
